package com.vcc.service.boss.response.wellat;

import com.vcc.data.entity.TransferOrder;
import com.vcc.service.client.vo.baseVo.BaseVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
public class TransferOrderVo extends BaseVo {
    private String orderId;
    private String type;
    private Long userId;
    private String account;
    private Long walletId;
    private BigDecimal amount;
    private Integer status;
    private String remark;
    private String currency;

    public TransferOrderVo() {
        super();
    }

    public TransferOrderVo(TransferOrder transferOrder, String account){
        super(transferOrder);
        this.orderId = transferOrder.getOrderId();
        this.type = transferOrder.getType();
        this.userId = transferOrder.getUserId();
        this.walletId = transferOrder.getWalletId();
        this.amount = transferOrder.getAmount();
        this.status = transferOrder.getStatus();
        this.remark = transferOrder.getRemark();
        this.currency = transferOrder.getCurrency();
        this.account = account;
    }
}
